import request from '@/utils/request'

export function umsDeptDelById (params) {
  return request({
    url: '/umsDept/delById',
    method: 'get',
    params
  })
}

export function umsDeptGetById (params) {
  return request({
    url: '/umsDept/getById',
    method: 'get',
    params
  })
}

export function umsDeptList (params) {
  return request({
    url: '/umsDept/list',
    method: 'get',
    params
  })
}

export function umsDeptSave (data) {
  return request({
    url: '/umsDept/save',
    method: 'post',
    data
  })
}

export function umsDeptUpdate (data) {
  return request({
    url: '/umsDept/update',
    method: 'post',
    data
  })
}

export function curCourseTypeList (params) {
  return request({
    url: '/curCourseType/list',
    method: 'get',
    params
  })
}
// 合作社区列表
export function umsCommunityList (params) {
  return request({
    url: '/umsCommunity/list',
    method: 'get',
    params
  })
}
// 新增社区
export function umsCommunitySave (data) {
  return request({
    url: '/umsCommunity/save',
    method: 'post',
    data
  })
}
// 编辑
export function umsCommunityUpdate (data) {
  return request({
    url: '/umsCommunity/update',
    method: 'post',
    data
  })
}
